

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/insert1.png">
  <link rel="icon" href="/img/insert1.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  
    <meta name="description" content="无聊的人生只剩下无尽的空虚。">
  
  <meta name="author" content="Mike Taylor">
  <meta name="keywords" content="我的博客">
  
  <title>数据库第三章实践作业 - Mike Taylor</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10.4.0/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
  



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"gitee.com","root":"/","version":"1.8.8","typing":{"enable":true,"typeSpeed":30,"cursorChar":"|","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"onlypost":false},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null}}};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
</head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>Mike Taylor's</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                主页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                日志
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                目录
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                个人
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="数据库第三章实践作业">
              
            </span>

            
              <div class="mt-3">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-author" aria-hidden="true"></i>
      Mike Taylor
    </span>
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-03-27 21:08" pubdate>
        2021年3月27日 晚上
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      3.1k 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      54
       分钟
    </span>
  

  
  
    
      <!-- 不蒜子统计文章PV -->
      <span id="busuanzi_container_page_pv" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="busuanzi_value_page_pv"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">数据库第三章实践作业</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：2021年5月28日 下午
                
              </p>
            
            <div class="markdown-body">
              <p>教材：《数据库系统原理、设计与编程》陆鑫 张凤荔 陈安龙/编著</p>
<h1 id="第三章-数据库操作语言SQL-课后习题"><a href="#第三章-数据库操作语言SQL-课后习题" class="headerlink" title="第三章 数据库操作语言SQL 课后习题"></a>第三章 数据库操作语言SQL 课后习题</h1><p>五、实践操作题</p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br></pre></td><td class="code"><pre><code class="hljs sql">作业<br><span class="hljs-comment">--创建三张表</span><br><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">TABLE</span> &quot;Owner&quot;<br>(&quot;PersonID&quot; <span class="hljs-type">char</span>(<span class="hljs-number">18</span>) <span class="hljs-keyword">PRIMARY</span> KEY,<br> &quot;Name&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">20</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;Gender&quot; <span class="hljs-type">char</span>(<span class="hljs-number">2</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;Occupation&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">20</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;Addr&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">50</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;Tel&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">11</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span><br>);<br><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">TABLE</span> &quot;Estate&quot;<br>(&quot;EstateID&quot; <span class="hljs-type">char</span>(<span class="hljs-number">15</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span> <span class="hljs-keyword">PRIMARY</span> KEY,<br> &quot;EstateName&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">50</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;EstateBuildName&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">50</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;EstateAddr&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">60</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;EstateCity&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">60</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;EstateType&quot; <span class="hljs-type">char</span>(<span class="hljs-number">4</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span> <span class="hljs-keyword">CHECK</span>(&quot;EstateType&quot; <span class="hljs-keyword">IN</span>(<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;商铺&#x27;</span>,<span class="hljs-string">&#x27;车位&#x27;</span>,<span class="hljs-string">&#x27;别墅&#x27;</span>)),<br> &quot;ProPertyArea&quot; <span class="hljs-type">numeric</span>(<span class="hljs-number">5</span>,<span class="hljs-number">2</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;UsableArea&quot; <span class="hljs-type">numeric</span>(<span class="hljs-number">5</span>,<span class="hljs-number">2</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;CompletedDate&quot; <span class="hljs-type">date</span> <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;YearLength&quot; <span class="hljs-type">int</span> <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span> <span class="hljs-keyword">DEFAULT</span> <span class="hljs-number">70</span>,<br> &quot;Remark&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">100</span>) <span class="hljs-keyword">NULL</span><br>);<br><span class="hljs-keyword">create</span> <span class="hljs-keyword">table</span> &quot;Registration&quot;<br>(&quot;RegisterID&quot; <span class="hljs-type">int</span> <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span> <span class="hljs-keyword">PRIMARY</span> KEY,<br> &quot;PersonID&quot; <span class="hljs-type">char</span>(<span class="hljs-number">18</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;EstateID&quot; <span class="hljs-type">char</span>(<span class="hljs-number">15</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;Price&quot; money <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;PurchasedDate&quot; <span class="hljs-type">date</span> <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> &quot;DeliverDate&quot; <span class="hljs-type">date</span> <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>,<br> <span class="hljs-keyword">CONSTRAINT</span> PersonID_FK <span class="hljs-keyword">FOREIGN</span> KEY(&quot;PersonID&quot;)<br> <span class="hljs-keyword">REFERENCES</span> &quot;Owner&quot;(&quot;PersonID&quot;) <span class="hljs-keyword">ON</span> <span class="hljs-keyword">DELETE</span> CASCADE,<br> <span class="hljs-keyword">constraint</span> EstateID_FK <span class="hljs-keyword">FOREIGN</span> KEY(&quot;EstateID&quot;)<br> <span class="hljs-keyword">REFERENCES</span> &quot;Estate&quot;(&quot;EstateID&quot;) <span class="hljs-keyword">ON</span> <span class="hljs-keyword">DELETE</span> CASCADE<br>)<br><br><span class="hljs-comment">--数据库修改测试：</span><br><span class="hljs-keyword">ALTER</span> <span class="hljs-keyword">TABLE</span> &quot;Owner&quot; <span class="hljs-keyword">DROP</span> <span class="hljs-keyword">COLUMN</span> &quot;Tel&quot;;<br><span class="hljs-keyword">ALTER</span> <span class="hljs-keyword">TABLE</span> &quot;Owner&quot; <span class="hljs-keyword">ADD</span> &quot;Tel&quot; <span class="hljs-type">varchar</span>(<span class="hljs-number">11</span>) <span class="hljs-keyword">NOT</span> <span class="hljs-keyword">NULL</span>;<br><br><span class="hljs-comment">--插入数据</span><br><span class="hljs-comment">--完善Owner表：</span><br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;510722200011268436&#x27;</span>,<span class="hljs-string">&#x27;诸慧&#x27;</span>,<span class="hljs-string">&#x27;女&#x27;</span>,<span class="hljs-string">&#x27;学生&#x27;</span>,<span class="hljs-string">&#x27;四川绵阳市&#x27;</span>,<span class="hljs-string">&#x27;15596543698&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;110221200301012836&#x27;</span>,<span class="hljs-string">&#x27;周共&#x27;</span>,<span class="hljs-string">&#x27;男&#x27;</span>,<span class="hljs-string">&#x27;学生&#x27;</span>,<span class="hljs-string">&#x27;北京市&#x27;</span>,<span class="hljs-string">&#x27;15832956645&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;370503198904032299&#x27;</span>,<span class="hljs-string">&#x27;张三&#x27;</span>,<span class="hljs-string">&#x27;男&#x27;</span>,<span class="hljs-string">&#x27;律师&#x27;</span>,<span class="hljs-string">&#x27;山东营口市&#x27;</span>,<span class="hljs-string">&#x27;13945236544&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;440402199804078098&#x27;</span>,<span class="hljs-string">&#x27;刘潜&#x27;</span>,<span class="hljs-string">&#x27;男&#x27;</span>,<span class="hljs-string">&#x27;服务员&#x27;</span>,<span class="hljs-string">&#x27;广东珠江市&#x27;</span>,<span class="hljs-string">&#x27;13646986566&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;120223199401018302&#x27;</span>,<span class="hljs-string">&#x27;关银屏&#x27;</span>,<span class="hljs-string">&#x27;女&#x27;</span>,<span class="hljs-string">&#x27;陆军&#x27;</span>,<span class="hljs-string">&#x27;天津市&#x27;</span>,<span class="hljs-string">&#x27;15932656565&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;110221200301012617&#x27;</span>,<span class="hljs-string">&#x27;曹笑&#x27;</span>,<span class="hljs-string">&#x27;男&#x27;</span>,<span class="hljs-string">&#x27;程序猿&#x27;</span>,<span class="hljs-string">&#x27;四川成都市&#x27;</span>,<span class="hljs-string">&#x27;15732696565&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;360103199103012782&#x27;</span>,<span class="hljs-string">&#x27;郭灵&#x27;</span>,<span class="hljs-string">&#x27;女&#x27;</span>,<span class="hljs-string">&#x27;教师&#x27;</span>,<span class="hljs-string">&#x27;江西南昌市&#x27;</span>,<span class="hljs-string">&#x27;15963556552&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Owner&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;320582199905175153&#x27;</span>,<span class="hljs-string">&#x27;孙云&#x27;</span>,<span class="hljs-string">&#x27;男&#x27;</span>,<span class="hljs-string">&#x27;医生&#x27;</span>,<span class="hljs-string">&#x27;江苏张家港市&#x27;</span>,<span class="hljs-string">&#x27;13665623233&#x27;</span>);<br><span class="hljs-comment">--完善Estate表：</span><br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;A&#x27;</span>,<span class="hljs-string">&#x27;承泰国际&#x27;</span>,<span class="hljs-string">&#x27;三里花城新蕊公馆&#x27;</span>,<span class="hljs-string">&#x27;绵阳&#x27;</span>,<span class="hljs-string">&#x27;绵阳&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;120&#x27;</span>,<span class="hljs-string">&#x27;110&#x27;</span>,<span class="hljs-string">&#x27;2020/1/1&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;B&#x27;</span>,<span class="hljs-string">&#x27;万达国际&#x27;</span>,<span class="hljs-string">&#x27;德商天骄城学府&#x27;</span>,<span class="hljs-string">&#x27;北京&#x27;</span>,<span class="hljs-string">&#x27;北京&#x27;</span>,<span class="hljs-string">&#x27;别墅&#x27;</span>,<span class="hljs-string">&#x27;700&#x27;</span>,<span class="hljs-string">&#x27;653&#x27;</span>,<span class="hljs-string">&#x27;2017/3/29&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;C&#x27;</span>,<span class="hljs-string">&#x27;东山府第&#x27;</span>,<span class="hljs-string">&#x27;未来之城&#x27;</span>,<span class="hljs-string">&#x27;营口&#x27;</span>,<span class="hljs-string">&#x27;营口&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;120&#x27;</span>,<span class="hljs-string">&#x27;113&#x27;</span>,<span class="hljs-string">&#x27;2009/6/6&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;D&#x27;</span>,<span class="hljs-string">&#x27;浩华地产&#x27;</span>,<span class="hljs-string">&#x27;雅居乐锦尚雅宸&#x27;</span>,<span class="hljs-string">&#x27;深圳&#x27;</span>,<span class="hljs-string">&#x27;深圳&#x27;</span>,<span class="hljs-string">&#x27;别墅&#x27;</span>,<span class="hljs-string">&#x27;450&#x27;</span>,<span class="hljs-string">&#x27;423&#x27;</span>,<span class="hljs-string">&#x27;2019/11/2&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;E&#x27;</span>,<span class="hljs-string">&#x27;承泰国际&#x27;</span>,<span class="hljs-string">&#x27;蓝光未来&#x27;</span>,<span class="hljs-string">&#x27;成都&#x27;</span>,<span class="hljs-string">&#x27;成都&#x27;</span>,<span class="hljs-string">&#x27;车位&#x27;</span>,<span class="hljs-string">&#x27;20&#x27;</span>,<span class="hljs-string">&#x27;15&#x27;</span>,<span class="hljs-string">&#x27;2016/1/24&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;F&#x27;</span>,<span class="hljs-string">&#x27;浩华地产&#x27;</span>,<span class="hljs-string">&#x27;人居柏云庭&#x27;</span>,<span class="hljs-string">&#x27;成都&#x27;</span>,<span class="hljs-string">&#x27;成都&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;260&#x27;</span>,<span class="hljs-string">&#x27;232&#x27;</span>,<span class="hljs-string">&#x27;2020/6/11&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;G&#x27;</span>,<span class="hljs-string">&#x27;万达国际&#x27;</span>,<span class="hljs-string">&#x27;荣海乐府&#x27;</span>,<span class="hljs-string">&#x27;南昌&#x27;</span>,<span class="hljs-string">&#x27;南昌&#x27;</span>,<span class="hljs-string">&#x27;商铺&#x27;</span>,<span class="hljs-string">&#x27;190&#x27;</span>,<span class="hljs-string">&#x27;172&#x27;</span>,<span class="hljs-string">&#x27;2020/3/23&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;H&#x27;</span>,<span class="hljs-string">&#x27;东山府第&#x27;</span>,<span class="hljs-string">&#x27;朗诗·峰境&#x27;</span>,<span class="hljs-string">&#x27;苏州&#x27;</span>,<span class="hljs-string">&#x27;苏州&#x27;</span>,<span class="hljs-string">&#x27;商铺&#x27;</span>,<span class="hljs-string">&#x27;200&#x27;</span>,<span class="hljs-string">&#x27;183&#x27;</span>,<span class="hljs-string">&#x27;2017/6/13&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;I&#x27;</span>,<span class="hljs-string">&#x27;承泰国际&#x27;</span>,<span class="hljs-string">&#x27;皇都花圃&#x27;</span>,<span class="hljs-string">&#x27;北京&#x27;</span>,<span class="hljs-string">&#x27;北京&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;360&#x27;</span>,<span class="hljs-string">&#x27;300&#x27;</span>,<span class="hljs-string">&#x27;2000/10/16&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;J&#x27;</span>,<span class="hljs-string">&#x27;东山府第&#x27;</span>,<span class="hljs-string">&#x27;红叶别墅&#x27;</span>,<span class="hljs-string">&#x27;广州&#x27;</span>,<span class="hljs-string">&#x27;广州&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;150&#x27;</span>,<span class="hljs-string">&#x27;130&#x27;</span>,<span class="hljs-string">&#x27;2003/3/16&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;K&#x27;</span>,<span class="hljs-string">&#x27;浩华地产&#x27;</span>,<span class="hljs-string">&#x27;锦灏佳园&#x27;</span>,<span class="hljs-string">&#x27;杭州&#x27;</span>,<span class="hljs-string">&#x27;杭州&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;162&#x27;</span>,<span class="hljs-string">&#x27;131&#x27;</span>,<span class="hljs-string">&#x27;2008/2/13&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;L&#x27;</span>,<span class="hljs-string">&#x27;东山府第&#x27;</span>,<span class="hljs-string">&#x27;云间水庄二期&#x27;</span>,<span class="hljs-string">&#x27;上海&#x27;</span>,<span class="hljs-string">&#x27;上海&#x27;</span>,<span class="hljs-string">&#x27;别墅&#x27;</span>,<span class="hljs-string">&#x27;500&#x27;</span>,<span class="hljs-string">&#x27;450&#x27;</span>,<span class="hljs-string">&#x27;2019/3/18&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;M&#x27;</span>,<span class="hljs-string">&#x27;承泰国际&#x27;</span>,<span class="hljs-string">&#x27; 静安雅筑&#x27;</span>,<span class="hljs-string">&#x27;北京&#x27;</span>,<span class="hljs-string">&#x27;北京&#x27;</span>,<span class="hljs-string">&#x27;商铺&#x27;</span>,<span class="hljs-string">&#x27;200&#x27;</span>,<span class="hljs-string">&#x27;150&#x27;</span>,<span class="hljs-string">&#x27;2018/1/26&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;N&#x27;</span>,<span class="hljs-string">&#x27;万达国际&#x27;</span>,<span class="hljs-string">&#x27; 学苑风仪&#x27;</span>,<span class="hljs-string">&#x27;深圳&#x27;</span>,<span class="hljs-string">&#x27;深圳&#x27;</span>,<span class="hljs-string">&#x27;商铺&#x27;</span>,<span class="hljs-string">&#x27;200&#x27;</span>,<span class="hljs-string">&#x27;170&#x27;</span>,<span class="hljs-string">&#x27;2016/11/3&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;O&#x27;</span>,<span class="hljs-string">&#x27;浩华地产&#x27;</span>,<span class="hljs-string">&#x27;九歌花圃&#x27;</span>,<span class="hljs-string">&#x27;德阳&#x27;</span>,<span class="hljs-string">&#x27;德阳&#x27;</span>,<span class="hljs-string">&#x27;住宅&#x27;</span>,<span class="hljs-string">&#x27;136&#x27;</span>,<span class="hljs-string">&#x27;120&#x27;</span>,<span class="hljs-string">&#x27;2017/2/26&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Estate&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;P&#x27;</span>,<span class="hljs-string">&#x27;承泰国际&#x27;</span>,<span class="hljs-string">&#x27;公寓枫情&#x27;</span>,<span class="hljs-string">&#x27;天津&#x27;</span>,<span class="hljs-string">&#x27;天津&#x27;</span>,<span class="hljs-string">&#x27;商铺&#x27;</span>,<span class="hljs-string">&#x27;200&#x27;</span>,<span class="hljs-string">&#x27;190&#x27;</span>,<span class="hljs-string">&#x27;2017/1/7&#x27;</span>,<span class="hljs-string">&#x27;70&#x27;</span>,<span class="hljs-keyword">NULL</span>);<br><span class="hljs-comment">--完善Register表：</span><br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;1&#x27;</span>,<span class="hljs-string">&#x27;510722200011268436&#x27;</span>,<span class="hljs-string">&#x27;A&#x27;</span>,<span class="hljs-string">&#x27;1325232&#x27;</span>,<span class="hljs-string">&#x27;2019/6/12&#x27;</span>,<span class="hljs-string">&#x27;2020/1/12&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;2&#x27;</span>,<span class="hljs-string">&#x27;110221200301012836&#x27;</span>,<span class="hljs-string">&#x27;B&#x27;</span>,<span class="hljs-string">&#x27;122136987&#x27;</span>,<span class="hljs-string">&#x27;2016/11/30&#x27;</span>,<span class="hljs-string">&#x27;2017/6/19&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;3&#x27;</span>,<span class="hljs-string">&#x27;370503198904032299&#x27;</span>,<span class="hljs-string">&#x27;C&#x27;</span>,<span class="hljs-string">&#x27;3266954&#x27;</span>,<span class="hljs-string">&#x27;2009/1/23&#x27;</span>,<span class="hljs-string">&#x27;2010/3/6&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;4&#x27;</span>,<span class="hljs-string">&#x27;440402199804078098&#x27;</span>,<span class="hljs-string">&#x27;D&#x27;</span>,<span class="hljs-string">&#x27;31146252&#x27;</span>,<span class="hljs-string">&#x27;2019/1/20&#x27;</span>,<span class="hljs-string">&#x27;2019/12/12&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;5&#x27;</span>,<span class="hljs-string">&#x27;120223199401018302&#x27;</span>,<span class="hljs-string">&#x27;E&#x27;</span>,<span class="hljs-string">&#x27;126952&#x27;</span>,<span class="hljs-string">&#x27;2016/2/24&#x27;</span>,<span class="hljs-string">&#x27;2016/4/15&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;6&#x27;</span>,<span class="hljs-string">&#x27;110221200301012617&#x27;</span>,<span class="hljs-string">&#x27;F&#x27;</span>,<span class="hljs-string">&#x27;3632542&#x27;</span>,<span class="hljs-string">&#x27;2020/12/18&#x27;</span>,<span class="hljs-string">&#x27;2021/3/16&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;7&#x27;</span>,<span class="hljs-string">&#x27;360103199103012782&#x27;</span>,<span class="hljs-string">&#x27;G&#x27;</span>,<span class="hljs-string">&#x27;1236024&#x27;</span>,<span class="hljs-string">&#x27;2019/9/12&#x27;</span>,<span class="hljs-string">&#x27;2020/6/12&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;8&#x27;</span>,<span class="hljs-string">&#x27;320582199905175153&#x27;</span>,<span class="hljs-string">&#x27;H&#x27;</span>,<span class="hljs-string">&#x27;2999634&#x27;</span>,<span class="hljs-string">&#x27;2017/8/17&#x27;</span>,<span class="hljs-string">&#x27;2017/12/13&#x27;</span>);<br><br><span class="hljs-comment">--选择商铺项</span><br><span class="hljs-keyword">SELECT</span> <span class="hljs-operator">*</span><br><span class="hljs-keyword">FROM</span> &quot;Estate&quot;<br><span class="hljs-keyword">WHERE</span> &quot;EstateType&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;商铺&#x27;</span>;<br><br><span class="hljs-comment">--竣工日期2018/12/1之后，产权面积大于90平方米的住宅的房产信息</span><br><span class="hljs-keyword">SELECT</span> <span class="hljs-operator">*</span><br><span class="hljs-keyword">FROM</span> &quot;Estate&quot;<br><span class="hljs-keyword">WHERE</span> &quot;CompletedDate&quot;<span class="hljs-operator">&gt;=</span><span class="hljs-string">&#x27;2018/12/1&#x27;</span> <span class="hljs-keyword">AND</span> &quot;ProPertyArea&quot;<span class="hljs-operator">&gt;</span><span class="hljs-string">&#x27;90&#x27;</span> <span class="hljs-keyword">AND</span> &quot;EstateType&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;住宅&#x27;</span>;<br><br><span class="hljs-comment">--为了体现一人多套房产，我们对表Registration添加如下内容</span><br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;9&#x27;</span>,<span class="hljs-string">&#x27;510722200011268436&#x27;</span>,<span class="hljs-string">&#x27;I&#x27;</span>,<span class="hljs-string">&#x27;97523621&#x27;</span>,<span class="hljs-string">&#x27;2000/12/12&#x27;</span>,<span class="hljs-string">&#x27;2001/9/13&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;10&#x27;</span>,<span class="hljs-string">&#x27;120223199401018302&#x27;</span>,<span class="hljs-string">&#x27;J&#x27;</span>,<span class="hljs-string">&#x27;3256564&#x27;</span>,<span class="hljs-string">&#x27;2001/12/25&#x27;</span>,<span class="hljs-string">&#x27;2003/11/26&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;11&#x27;</span>,<span class="hljs-string">&#x27;510722200011268436&#x27;</span>,<span class="hljs-string">&#x27;K&#x27;</span>,<span class="hljs-string">&#x27;3565346&#x27;</span>,<span class="hljs-string">&#x27;2007/9/30&#x27;</span>,<span class="hljs-string">&#x27;2008/12/3&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;12&#x27;</span>,<span class="hljs-string">&#x27;440402199804078098&#x27;</span>,<span class="hljs-string">&#x27;L&#x27;</span>,<span class="hljs-string">&#x27;96236565&#x27;</span>,<span class="hljs-string">&#x27;2016/6/30&#x27;</span>,<span class="hljs-string">&#x27;2019/9/8&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;13&#x27;</span>,<span class="hljs-string">&#x27;440402199804078098&#x27;</span>,<span class="hljs-string">&#x27;M&#x27;</span>,<span class="hljs-string">&#x27;22132321&#x27;</span>,<span class="hljs-string">&#x27;2018/9/17&#x27;</span>,<span class="hljs-string">&#x27;2018/11/4&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;14&#x27;</span>,<span class="hljs-string">&#x27;440402199804078098&#x27;</span>,<span class="hljs-string">&#x27;N&#x27;</span>,<span class="hljs-string">&#x27;13326465&#x27;</span>,<span class="hljs-string">&#x27;2014/1/1&#x27;</span>,<span class="hljs-string">&#x27;2016/12/30&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;15&#x27;</span>,<span class="hljs-string">&#x27;440402199804078098&#x27;</span>,<span class="hljs-string">&#x27;O&#x27;</span>,<span class="hljs-string">&#x27;1296357&#x27;</span>,<span class="hljs-string">&#x27;2016/1/3&#x27;</span>,<span class="hljs-string">&#x27;2017/6/8&#x27;</span>);<br><span class="hljs-keyword">INSERT</span> <span class="hljs-keyword">INTO</span> &quot;Registration&quot; <span class="hljs-keyword">VALUES</span>(<span class="hljs-string">&#x27;16&#x27;</span>,<span class="hljs-string">&#x27;370503198904032299&#x27;</span>,<span class="hljs-string">&#x27;P&#x27;</span>,<span class="hljs-string">&#x27;9615362&#x27;</span>,<span class="hljs-string">&#x27;2016/9/16&#x27;</span>,<span class="hljs-string">&#x27;2017/8/19&#x27;</span>);<br><br><span class="hljs-comment">--查询个人在各地购买住宅两套以上的业主信息。</span><br><span class="hljs-keyword">SELECT</span> A.&quot;PersonID&quot; <span class="hljs-keyword">AS</span> 身份证号,A.&quot;Name&quot; <span class="hljs-keyword">AS</span> 名字,A.&quot;Gender&quot; <span class="hljs-keyword">AS</span> 性别,A.&quot;Occupation&quot; <span class="hljs-keyword">AS</span> 职业,A.&quot;Addr&quot; <span class="hljs-keyword">AS</span> 住址,A.&quot;Tel&quot; <span class="hljs-keyword">AS</span> 电话,<span class="hljs-built_in">COUNT</span>(A.&quot;PersonID&quot;) <span class="hljs-keyword">AS</span> 总套数<br><span class="hljs-keyword">FROM</span> &quot;Owner&quot; <span class="hljs-keyword">AS</span> A <span class="hljs-keyword">JOIN</span> &quot;Registration&quot; <span class="hljs-keyword">AS</span> B<br><span class="hljs-keyword">ON</span> A.&quot;PersonID&quot;<span class="hljs-operator">=</span>B.&quot;PersonID&quot;<br><span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span> A.&quot;PersonID&quot;<br><span class="hljs-keyword">HAVING</span> <span class="hljs-built_in">COUNT</span>(A.&quot;PersonID&quot;)<span class="hljs-operator">&gt;=</span><span class="hljs-number">2</span>;<br><br><span class="hljs-comment">--查询个人在特定的城市购买住宅两套以上的业主的基本信息</span><br><span class="hljs-comment">--为了效果明显，我们修改数据</span><br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;成都&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;C&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;成都&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;G&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;成都&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;O&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;北京&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;D&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;北京&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;L&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;北京&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;P&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;成都&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;C&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;成都&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;G&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;成都&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;O&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;北京&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;D&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;北京&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;L&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;北京&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;P&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateCity&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;绵阳&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;K&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateAddr&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;绵阳&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;K&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateType&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;住宅&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;L&#x27;</span>;<br>UPDATE &quot;Estate&quot;<br><span class="hljs-keyword">SET</span> &quot;EstateType&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;住宅&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;M&#x27;</span>;<br><span class="hljs-comment">--查询</span><br><span class="hljs-keyword">SELECT</span> A.&quot;PersonID&quot; <span class="hljs-keyword">AS</span> 身份证号,A.&quot;Name&quot; <span class="hljs-keyword">AS</span> 名字,A.&quot;Gender&quot; <span class="hljs-keyword">AS</span> 性别,A.&quot;Occupation&quot; <span class="hljs-keyword">AS</span> 职业,A.&quot;Addr&quot; <span class="hljs-keyword">AS</span> 住址,A.&quot;Tel&quot; <span class="hljs-keyword">AS</span> 电话,<span class="hljs-built_in">COUNT</span>(A.&quot;PersonID&quot;) <span class="hljs-keyword">AS</span> 总套数<br><span class="hljs-keyword">FROM</span> &quot;Owner&quot; <span class="hljs-keyword">AS</span> A <span class="hljs-keyword">JOIN</span> &quot;Registration&quot; <span class="hljs-keyword">AS</span> B<br><span class="hljs-keyword">ON</span> A.&quot;PersonID&quot;<span class="hljs-operator">=</span>B.&quot;PersonID&quot; <br><span class="hljs-keyword">JOIN</span> &quot;Estate&quot; <span class="hljs-keyword">AS</span> C <span class="hljs-keyword">ON</span> B.&quot;EstateID&quot;<span class="hljs-operator">=</span>C.&quot;EstateID&quot;<br><span class="hljs-keyword">WHERE</span> C.&quot;EstateType&quot;<span class="hljs-operator">=</span><span class="hljs-string">&#x27;住宅&#x27;</span><br><span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span> C.&quot;EstateCity&quot;,A.&quot;PersonID&quot;<br><span class="hljs-keyword">HAVING</span> <span class="hljs-built_in">COUNT</span>(A.&quot;PersonID&quot;)<span class="hljs-operator">&gt;=</span><span class="hljs-number">2</span>;<br><br><span class="hljs-comment">--统计2018年度某城市各类房产销售面积</span><br><span class="hljs-comment">--为了效果明显，我们改一些购买日期</span><br>UPDATE &quot;Registration&quot;<br><span class="hljs-keyword">SET</span> &quot;PurchasedDate&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;2018/7/03&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;B&#x27;</span>;<br>UPDATE &quot;Registration&quot;<br><span class="hljs-keyword">SET</span> &quot;PurchasedDate&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;2018/6/13&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;D&#x27;</span>;<br>UPDATE &quot;Registration&quot;<br><span class="hljs-keyword">SET</span> &quot;PurchasedDate&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;2018/4/06&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;G&#x27;</span>;<br>UPDATE &quot;Registration&quot;<br><span class="hljs-keyword">SET</span> &quot;PurchasedDate&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;2018/3/30&#x27;</span><br><span class="hljs-keyword">WHERE</span> &quot;EstateID&quot; <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;P&#x27;</span>;<br><span class="hljs-keyword">SELECT</span> &quot;EstateType&quot; <span class="hljs-keyword">AS</span> 房产类型,<span class="hljs-built_in">SUM</span>(&quot;ProPertyArea&quot;) <span class="hljs-keyword">AS</span> 销售面积之和<br><span class="hljs-keyword">FROM</span> &quot;Estate&quot; <span class="hljs-keyword">AS</span> A <span class="hljs-keyword">JOIN</span> &quot;Registration&quot; <span class="hljs-keyword">AS</span> B<br><span class="hljs-keyword">ON</span> A.&quot;EstateID&quot;<span class="hljs-operator">=</span>B.&quot;EstateID&quot;<br><span class="hljs-keyword">WHERE</span> B.&quot;PurchasedDate&quot; <span class="hljs-keyword">BETWEEN</span> <span class="hljs-string">&#x27;2018/01/01&#x27;</span> <span class="hljs-keyword">AND</span> <span class="hljs-string">&#x27;2018/12/30&#x27;</span><br><span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span> &quot;EstateType&quot;;<br><br><span class="hljs-comment">--统计2018年度某城市各类房产销售金额</span><br><span class="hljs-comment">--方案一：</span><br><span class="hljs-keyword">SELECT</span> &quot;EstateType&quot; <span class="hljs-keyword">AS</span> 房产类型,<span class="hljs-built_in">SUM</span>(&quot;Price&quot;) <span class="hljs-keyword">AS</span> 销售金额之和<br><span class="hljs-keyword">FROM</span> &quot;Estate&quot;,&quot;Registration&quot;<br><span class="hljs-keyword">WHERE</span> &quot;Estate&quot;.&quot;EstateID&quot;<span class="hljs-operator">=</span>&quot;Registration&quot;.&quot;EstateID&quot;  <span class="hljs-keyword">AND</span>  &quot;Registration&quot;.&quot;PurchasedDate&quot; <span class="hljs-keyword">BETWEEN</span> <span class="hljs-string">&#x27;2018/01/01&#x27;</span> <span class="hljs-keyword">AND</span> <span class="hljs-string">&#x27;2018/12/30&#x27;</span><br><span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span> &quot;EstateType&quot;;<br><span class="hljs-comment">--方案二：</span><br><span class="hljs-keyword">SELECT</span> &quot;EstateType&quot; <span class="hljs-keyword">AS</span> 房产类型,<span class="hljs-built_in">SUM</span>(&quot;Price&quot;) <span class="hljs-keyword">AS</span> 销售金额之和<br><span class="hljs-keyword">FROM</span> &quot;Estate&quot; <span class="hljs-keyword">AS</span> A <span class="hljs-keyword">JOIN</span> &quot;Registration&quot; <span class="hljs-keyword">AS</span> B<br><span class="hljs-keyword">ON</span> A.&quot;EstateID&quot;<span class="hljs-operator">=</span>B.&quot;EstateID&quot;<br><span class="hljs-keyword">WHERE</span> B.&quot;PurchasedDate&quot; <span class="hljs-keyword">BETWEEN</span> <span class="hljs-string">&#x27;2018/01/01&#x27;</span> <span class="hljs-keyword">AND</span> <span class="hljs-string">&#x27;2018/12/30&#x27;</span><br><span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span> &quot;EstateType&quot;;<br><br><span class="hljs-comment">--视图一</span><br><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">VIEW</span> &quot;View_One&quot; <span class="hljs-keyword">AS</span><br><span class="hljs-keyword">SELECT</span> A.&quot;PersonID&quot; <span class="hljs-keyword">AS</span> &quot;身份证号&quot;,A.&quot;EstateID&quot; <span class="hljs-keyword">AS</span> &quot;房产编号&quot;,A.&quot;EstateName&quot; <span class="hljs-keyword">AS</span> &quot;房产名称&quot;,A.&quot;EstateType&quot; <span class="hljs-keyword">AS</span> &quot;房产类型&quot;,A.&quot;ProPertyArea&quot; <span class="hljs-keyword">AS</span> &quot;产权面积&quot;,B.&quot;Price&quot; <span class="hljs-keyword">AS</span> &quot;购买金额&quot;,B.&quot;PurchasedDate&quot; <span class="hljs-keyword">AS</span> &quot;购买日期&quot;,&quot;EstateBuildName&quot; <span class="hljs-keyword">AS</span> &quot;房产楼盘&quot;,&quot;EstateAddr&quot; <span class="hljs-keyword">AS</span> &quot;房产城市&quot;<br><span class="hljs-keyword">FROM</span> &quot;Estate&quot; <span class="hljs-keyword">AS</span> A <span class="hljs-keyword">JOIN</span>&quot;Registration&quot; <span class="hljs-keyword">AS</span> B <br><span class="hljs-keyword">ON</span> A.&quot;EstateID&quot;<span class="hljs-operator">=</span>B.&quot;EstateID&quot;;<br><br><span class="hljs-keyword">SELECT</span> &quot;房产编号&quot;,&quot;房产名称&quot;,&quot;房产类型&quot;,&quot;产权面积&quot;,&quot;购买金额&quot;,&quot;购买日期&quot;,&quot;房产楼盘&quot;,&quot;房产城市&quot;<br><span class="hljs-keyword">FROM</span> &quot;View_One&quot;<br><span class="hljs-keyword">WHERE</span> 身份证号 <span class="hljs-operator">=</span> <span class="hljs-string">&#x27;510722200011268436&#x27;</span><br><span class="hljs-keyword">ORDER</span> <span class="hljs-keyword">BY</span> 购买日期 <span class="hljs-keyword">DESC</span>;<br><br><span class="hljs-comment">--统计2018年各个城市销售总套数/总金额</span><br><span class="hljs-comment">--统计</span><br><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">VIEW</span> &quot;View_Two&quot; <span class="hljs-keyword">AS</span><br><span class="hljs-keyword">SELECT</span> A.&quot;EstateCity&quot; <span class="hljs-keyword">AS</span> 城市,<span class="hljs-built_in">SUM</span>(B.&quot;Price&quot;) <span class="hljs-keyword">AS</span> 总金额,<span class="hljs-built_in">COUNT</span>(A.&quot;EstateCity&quot;) <span class="hljs-keyword">AS</span> 总套数<br><span class="hljs-keyword">FROM</span> &quot;Estate&quot; <span class="hljs-keyword">AS</span> A <span class="hljs-keyword">JOIN</span> &quot;Registration&quot; <span class="hljs-keyword">AS</span> B<br><span class="hljs-keyword">ON</span> A.&quot;EstateID&quot;<span class="hljs-operator">=</span>B.&quot;EstateID&quot;<br><span class="hljs-keyword">WHERE</span> B.&quot;PurchasedDate&quot; <span class="hljs-keyword">BETWEEN</span> <span class="hljs-string">&#x27;2018/01/01&#x27;</span> <span class="hljs-keyword">AND</span> <span class="hljs-string">&#x27;2018/12/30&#x27;</span><br><span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span> A.&quot;EstateCity&quot;<br></code></pre></td></tr></table></figure>

<p><strong>注意：本人认真写的数据库作业，但是我其实也不确定有没有错的，看的人参考就好，哈哈。</strong></p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/%E7%AD%94%E6%A1%88/">答案</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2021/04/02/%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A08/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">CSS布局定位</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2021/03/22/%E5%89%8D%E5%90%8E%E7%AB%AF%E5%88%86%E7%A6%BB/">
                        <span class="hidden-mobile">Spring+Vue</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->

  <div class="col-lg-7 mx-auto nopadding-x-md">
    <div class="container custom post-custom mx-auto">
      <img src="https://octodex.github.com/images/jetpacktocat.png" srcset="/img/loading.gif" class="rounded mx-auto d-block mt-5" style="width:150px; height:150px;">
    </div>
  </div>


    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  
  <!-- 备案信息 -->
  <div class="beian">
    <span>
      <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
        京ICP证123456号
      </a>
    </span>
    
      
        <span>
          <a
            href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12345678"
            rel="nofollow noopener"
            class="beian-police"
            target="_blank"
          >
            
              <span style="visibility: hidden; width: 0">|</span>
              <img src="/img/police_beian.png" srcset="/img/loading.gif" alt="police-icon"/>
            
            <span>京公网安备12345678号</span>
          </a>
        </span>
      
    
  </div>


  
</footer>

<!-- SCRIPTS -->

  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/lazyload.js" ></script>
  



  



  <script  src="https://cdn.jsdelivr.net/npm/tocbot@4.12.0/dist/tocbot.min.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4.3.0/anchor.min.js" ></script>



  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    (function () {
      var path = "/local-search.xml";
      $('#local-search-input').on('click', function() {
        searchFunc(path, 'local-search-input', 'local-search-result');
      });
      $('#modalSearch').on('shown.bs.modal', function() {
        $('#local-search-input').focus();
      });
    })()
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>



<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618,"jsonPath":"/live2dw/assets/shizuku.model.json"},"display":{"superSample":2,"width":150,"height":300,"position":"right","hOffset":0,"vOffset":-20},"mobile":{"show":true,"scale":0.5},"react":{"opacityDefault":0.7,"opacityOnHover":0.8},"log":false});</script></body>
</html>
